<template>
  <section>
    <el-tabs v-model="activeName">
      <el-tab-pane label="任务记录" name="third">
        <task-record v-if="activeName === 'third'" />
      </el-tab-pane>
      <el-tab-pane label="任务实例" name="first">
        <task-instance v-if="activeName === 'first'" />
      </el-tab-pane>
      <el-tab-pane label="任务定义" name="second">
        <task-define v-if="activeName === 'second'" />
      </el-tab-pane>
    </el-tabs>
  </section>
</template>

<script>
  import  taskDefine from './taskDefine/index'
  import taskInstance from './taskInstance/index'
  import taskRecord from './taskRecord/index'
  export default {
    name: "index",
    components:{taskDefine,taskInstance,taskRecord},
    data(){
      return{
        activeName:'second'
      }
    }
  }
</script>

<style scoped>

</style>
